package com.chenyaowei.product.mapper;

import java.util.List;
import com.chenyaowei.product.domain.CywBrandCategoryRelation;
import org.apache.ibatis.annotations.Param;

/**
 * 品牌分类关联Mapper接口
 *
 * @author 陈耀威
 * @date 2023-11-22
 */
public interface CywBrandCategoryRelationMapper
{
    /**
     * 查询品牌分类关联
     *
     * @param id 品牌分类关联主键
     * @return 品牌分类关联
     */
    public CywBrandCategoryRelation selectCywBrandCategoryRelationById(Long id);

    /**
     * 查询品牌分类关联列表
     *
     * @param cywBrandCategoryRelation 品牌分类关联
     * @return 品牌分类关联集合
     */
    public List<CywBrandCategoryRelation> selectCywBrandCategoryRelationList(CywBrandCategoryRelation cywBrandCategoryRelation);

    /**
     * 新增品牌分类关联
     *
     * @param cywBrandCategoryRelation 品牌分类关联
     * @return 结果
     */
    public int insertCywBrandCategoryRelation(CywBrandCategoryRelation cywBrandCategoryRelation);

    /**
     * 修改品牌分类关联
     *
     * @param cywBrandCategoryRelation 品牌分类关联
     * @return 结果
     */
    public int updateCywBrandCategoryRelation(CywBrandCategoryRelation cywBrandCategoryRelation);

    /**
     * 删除品牌分类关联
     *
     * @param id 品牌分类关联主键
     * @return 结果
     */
    public int deleteCywBrandCategoryRelationById(Long id);

    /**
     * 批量删除品牌分类关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCywBrandCategoryRelationByIds(Long[] ids);

    List<CywBrandCategoryRelation> selectBrandListByCatelogId(@Param("catelogId") Long catelogId);

    List<CywBrandCategoryRelation> selectListByCatelogId(@Param("catelogId") Long catelogId);

    List<CywBrandCategoryRelation> selectListByCatelogIds(@Param("catelogIds") List<Long> catelogIds);
}
